﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TDB.DBInternals;
using System.ServiceModel;

namespace TDB.Communication
{
  [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single,
                ConcurrencyMode = ConcurrencyMode.Single,
    //TransactionAutoCompleteOnSessionClose = true,
                TransactionIsolationLevel = System.Transactions.IsolationLevel.Serializable)]
  public class AdministrationService : IAdministrationServices
  {
    [OperationBehavior(TransactionScopeRequired = true)]
    public void DeployDefinitionAssembly(byte[] assemblyfile)
    {
      AssemblyStore.Set(assemblyfile);
    }
  }
}
